package edu.ustb.efws;

/**
 * 通用异常
 *
 * @author TS Group
 */
public class BaseException extends RuntimeException {

    private final int code;

    public BaseException(String msg) {
        this(1000, msg);
    }

    public BaseException(int code, String msg){
        super(msg);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
